package gamagora.game.world.maps.game
{
	import gamagora.game.entity.*;
	import gamagora.game.world.maps.OSMap;

	public class OSMap9 extends OSMap
	{
		public function OSMap9()
		{
			super();
			
			addBackground(new OSBird(680, 340));
			
			add(new OSBridge(0, 520, 9, 5, false, true));
			
			add(new OSBridge(0, 660, 9, 5, false, true));
			
			add(new OSBridge(0, 800, 9, 5, false, true));
			
			var ground:OSGround = new OSGround(0, 1060, 960, 20, 0, false);
			ground.setNoErosionUp([46, 47]);
			ground.setNoErosionDown([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47]);
			ground.setNoErosionLeft([0]);
			ground.setNoErosionRight([47]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(360, 440, 20, 440, 0, false);
			ground.erode();
			add(ground);
			
			ground = new OSGround(620, 380, 160, 520, 0, false);
			ground.setNoErosionRight([7, 15, 23, 31, 39, 47, 55, 63, 71]);
			ground.erode();
			add(ground);
			
			ground = new OSGround(780, 380, 180, 180, 0, false);
			ground.setNoErosionLeft([0, 9, 18, 27, 36, 45, 54, 63, 72]);
			ground.setNoErosionRight([8, 17, 26, 35, 44, 53, 62, 71, 80]);
			ground.erode();
			add(ground);
			
			for(var i:uint=0;i<3;i++)
			{
				addForeground(new OSPillar(650 + i * 40, 890, 20, 180));
			}
			
			ground = new OSGround(920, 700, 40, 360, 0, false);
			ground.setNoErosionDown([34, 35]);
			ground.setNoErosionRight([1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35]);
			ground.erode();
			add(ground);
		}
	}
}
